<?php
namespace app\index\controller;
use app\index\model\User as UserModel;
use app\index\model\Usouquan as UsouquanModel;
use think\Controller;
use think\Cache;
class Publicer extends Controller
{
	public $userModel;
	public $souquanModel;
	public function _initialize()
	{
		$this->userModel = new UserModel;
		$this->usouquanModel = new UsouquanModel();
	}
	public function public()
	{
		//$this->assign('name',session('name'));
	}
		public function gerenXinxi()
	{
		$where = ['id'=>session('id')] ;
		$re = $this->userModel->userSelect($where)[0]->toArray();
		$swhere = ['user_id'=>session('id')] ;
		$souquan = $this->usouquanModel->souquanSelect($swhere);
		foreach ($souquan as $key => $value) {
			 $arr[$value['enter_type'] ]= $value->toArray();
		}
		$arr['user'] = $re;
		return $arr;
	}
	

}